import exifread
import os
from PIL import Image

'''
读取图片的信息
'''


postfix = 'jpg'
base_dir = 'd:/image_augmentation/'

image_dir = base_dir + 'images/'
annotation_dir = base_dir + 'annotations'


path = image_dir + '1071.jpg'
f = open(path, 'rb')
tags = exifread.process_file(f)

print(tags)



img = Image.open(path )

print(img.size)
